import { ResourceTreeNode } from "../../map/components";


export interface LoginParams {
    username: string,
    password: string
}

export interface UserToken {
    id: string,
    ttl: number,
    created: string,
    userId: string
}

export interface UserInfo {
    id: string,
    realname: string,
    realm: string,
    username: string,
    resourceTrees: { 
        pro: ResourceTreeNode[], 
        own: ResourceTreeNode[],
        public: ResourceTreeNode[]
    },
    email: string,
    emailVerified: boolean
}

export interface User {
    userInfo: UserInfo,
    userToken: UserToken
}